/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.ka.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.kaaction.common.persistence.DataEntity;

/**
 * 货品管理明细Entity
 * @author huanghaiming
 * @version 2017-06-19
 */
public class ProductManageDetails extends DataEntity<ProductManageDetails> {
	
	private static final long serialVersionUID = 1L;
	private String productid;		// productid
	private String sizeId;		// 尺码
	private String colorId;		// 颜色
	private String canalId;		// 渠道
	private Integer num;		// 数量
	private Double price;		// 价格
	private Double salesPrice;		// 价格
	private String gridNo;		// 库位号
	
	public ProductManageDetails() {
		super();
	}

	public ProductManageDetails(String id){
		super(id);
	}

	@Length(min=1, max=64, message="productid长度必须介于 1 和 64 之间")
	public String getProductid() {
		return productid;
	}

	public void setProductid(String productid) {
		this.productid = productid;
	}
	
	public String getSizeId() {
		return sizeId;
	}

	public void setSizeId(String sizeId) {
		this.sizeId = sizeId;
	}

	public String getColorId() {
		return colorId;
	}

	public void setColorId(String colorId) {
		this.colorId = colorId;
	}
	
	public String getCanalId() {
		return canalId;
	}

	public void setCanalId(String canalId) {
		this.canalId = canalId;
	}

	@NotNull(message="数量不能为空")
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}
	
	@NotNull(message="价格不能为空")
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@Length(min=0, max=32, message="库位号长度必须介于 0 和 32 之间")
	public String getGridNo() {
		return gridNo;
	}

	public void setGridNo(String gridNo) {
		this.gridNo = gridNo;
	}

	public Double getSalesPrice() {
		return salesPrice;
	}

	public void setSalesPrice(Double salesPrice) {
		this.salesPrice = salesPrice;
	}
	
	
}